<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__pdm__pcm__functions__v2.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Functions<div class="ingroups"><a class="el" href="group__group__pdm__pcm__v2.html">PDM_PCM_v2   (PDM-PCM Converter v2)</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga1392e066f0b764c9a71a9fc30bc6a33c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__pdm__pcm__enums.html#ga8ef640550e81684b9c1b7a8af1cfd355">cy_en_pdm_pcm_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#ga1392e066f0b764c9a71a9fc30bc6a33c">Cy_PDM_PCM_Channel_Init</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base, <a class="el" href="structcy__stc__pdm__pcm__channel__config__t.html">cy_stc_pdm_pcm_channel_config_t</a> const *channel_config, uint8_t channel_num)</td></tr>
<tr class="memdesc:ga1392e066f0b764c9a71a9fc30bc6a33c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the PDM-PCM Channel.  <a href="#ga1392e066f0b764c9a71a9fc30bc6a33c">More...</a><br /></td></tr>
<tr class="separator:ga1392e066f0b764c9a71a9fc30bc6a33c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga26938ec1c8eb9fe737fffabfa68f33b4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__pdm__pcm__enums.html#ga8ef640550e81684b9c1b7a8af1cfd355">cy_en_pdm_pcm_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#ga26938ec1c8eb9fe737fffabfa68f33b4">Cy_PDM_PCM_Init</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base, <a class="el" href="structcy__stc__pdm__pcm__config__v2__t.html">cy_stc_pdm_pcm_config_v2_t</a> const *config)</td></tr>
<tr class="memdesc:ga26938ec1c8eb9fe737fffabfa68f33b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the PDM-PCM module.  <a href="#ga26938ec1c8eb9fe737fffabfa68f33b4">More...</a><br /></td></tr>
<tr class="separator:ga26938ec1c8eb9fe737fffabfa68f33b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga88c1700a022a843b9d2f4ecc49b88561"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__pdm__pcm__enums.html#ga8ef640550e81684b9c1b7a8af1cfd355">cy_en_pdm_pcm_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#ga88c1700a022a843b9d2f4ecc49b88561">Cy_PDM_PCM_test_Init</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base, <a class="el" href="structcy__stc__pdm__pcm__config__v2__t.html">cy_stc_pdm_pcm_config_v2_t</a> const *config, <a class="el" href="structcy__stc__test__config__t.html">cy_stc_test_config_t</a> const *test_config)</td></tr>
<tr class="memdesc:ga88c1700a022a843b9d2f4ecc49b88561"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the PDM-PCM module test mode.  <a href="#ga88c1700a022a843b9d2f4ecc49b88561">More...</a><br /></td></tr>
<tr class="separator:ga88c1700a022a843b9d2f4ecc49b88561"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5a2ba75f753a63b956417ff7a614a878"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#ga5a2ba75f753a63b956417ff7a614a878">Cy_PDM_PCM_Channel_DeInit</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base, uint8_t channel_num)</td></tr>
<tr class="memdesc:ga5a2ba75f753a63b956417ff7a614a878"><td class="mdescLeft">&#160;</td><td class="mdescRight">Uninitializes the PDM-PCM channel.  <a href="#ga5a2ba75f753a63b956417ff7a614a878">More...</a><br /></td></tr>
<tr class="separator:ga5a2ba75f753a63b956417ff7a614a878"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab516ee1cbdb2327b995d6ea079ad6209"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#gab516ee1cbdb2327b995d6ea079ad6209">Cy_PDM_PCM_DeInit</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base)</td></tr>
<tr class="memdesc:gab516ee1cbdb2327b995d6ea079ad6209"><td class="mdescLeft">&#160;</td><td class="mdescRight">Uninitializes the PDM-PCM module.  <a href="#gab516ee1cbdb2327b995d6ea079ad6209">More...</a><br /></td></tr>
<tr class="separator:gab516ee1cbdb2327b995d6ea079ad6209"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab6dc3079c2689ccdc2d1ae035d326a4b"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#gab6dc3079c2689ccdc2d1ae035d326a4b">Cy_PDM_PCM_Activate_Channel</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base, uint8_t channel_num)</td></tr>
<tr class="memdesc:gab6dc3079c2689ccdc2d1ae035d326a4b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Activates the PDM-PCM channel.  <a href="#gab6dc3079c2689ccdc2d1ae035d326a4b">More...</a><br /></td></tr>
<tr class="separator:gab6dc3079c2689ccdc2d1ae035d326a4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0c533b9429885661b8ba5b1b721a2413"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#ga0c533b9429885661b8ba5b1b721a2413">Cy_PDM_PCM_DeActivate_Channel</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base, uint8_t channel_num)</td></tr>
<tr class="memdesc:ga0c533b9429885661b8ba5b1b721a2413"><td class="mdescLeft">&#160;</td><td class="mdescRight">DeActivates the PDM-PCM channel.  <a href="#ga0c533b9429885661b8ba5b1b721a2413">More...</a><br /></td></tr>
<tr class="separator:ga0c533b9429885661b8ba5b1b721a2413"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga75b89156790c4150d164d9e82077bda9"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#ga75b89156790c4150d164d9e82077bda9">Cy_PDM_PCM_SetRateSampling</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base, <a class="el" href="group__group__pdm__pcm__enums__v2.html#ga6772333ee7eab35a0f8b1d9db5239302">cy_en_pdm_pcm_halve_rate_sel_t</a> rate)</td></tr>
<tr class="memdesc:ga75b89156790c4150d164d9e82077bda9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets Halve rate Sampling rate.  <a href="#ga75b89156790c4150d164d9e82077bda9">More...</a><br /></td></tr>
<tr class="separator:ga75b89156790c4150d164d9e82077bda9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab27cd36939fc7d4872af7ca796ff8afc"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#gab27cd36939fc7d4872af7ca796ff8afc">Cy_PDM_PCM_Channel_Enable</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base, uint8_t channel_num)</td></tr>
<tr class="memdesc:gab27cd36939fc7d4872af7ca796ff8afc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the PDM-PCM data conversion.  <a href="#gab27cd36939fc7d4872af7ca796ff8afc">More...</a><br /></td></tr>
<tr class="separator:gab27cd36939fc7d4872af7ca796ff8afc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga130f6ad178dafb56399e2c5b10914e36"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#ga130f6ad178dafb56399e2c5b10914e36">Cy_PDM_PCM_Channel_Disable</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base, uint8_t channel_num)</td></tr>
<tr class="memdesc:ga130f6ad178dafb56399e2c5b10914e36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the PDM-PCM data conversion.  <a href="#ga130f6ad178dafb56399e2c5b10914e36">More...</a><br /></td></tr>
<tr class="separator:ga130f6ad178dafb56399e2c5b10914e36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab1a8ae72fd10550f73190d29254466c6"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#gab1a8ae72fd10550f73190d29254466c6">Cy_PDM_PCM_Channel_Set_Cic_DecimCode</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base, uint8_t channel_num, <a class="el" href="group__group__pdm__pcm__enums__v2.html#gaa43345298364b2951b275e21ded1b454">cy_en_pdm_pcm_ch_cic_decimcode_t</a> decimcode)</td></tr>
<tr class="memdesc:gab1a8ae72fd10550f73190d29254466c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets PDM-PCM CIC Filter Decimation code.  <a href="#gab1a8ae72fd10550f73190d29254466c6">More...</a><br /></td></tr>
<tr class="separator:gab1a8ae72fd10550f73190d29254466c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa746b85af2c98146a2243ed5725642ba"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#gaa746b85af2c98146a2243ed5725642ba">Cy_PDM_PCM_Channel_Set_Fir0</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base, uint8_t channel_num, <a class="el" href="group__group__pdm__pcm__enums__v2.html#gaf32821b068ff1292891ad11066bd9d4c">cy_en_pdm_pcm_ch_fir0_decimcode_t</a> decimcode, uint8_t scale)</td></tr>
<tr class="memdesc:gaa746b85af2c98146a2243ed5725642ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets PDM-PCM FIR0 Filter Decim code and Scale.  <a href="#gaa746b85af2c98146a2243ed5725642ba">More...</a><br /></td></tr>
<tr class="separator:gaa746b85af2c98146a2243ed5725642ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga37ee85d46d7b457dbd395f85ea6a08c0"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#ga37ee85d46d7b457dbd395f85ea6a08c0">Cy_PDM_PCM_Channel_Set_Fir1</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base, uint8_t channel_num, <a class="el" href="group__group__pdm__pcm__enums__v2.html#ga2b59920bd0f1a3b4051da1f358d502db">cy_en_pdm_pcm_ch_fir1_decimcode_t</a> decimcode, uint8_t scale)</td></tr>
<tr class="memdesc:ga37ee85d46d7b457dbd395f85ea6a08c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets PDM-PCM FIR1 Filter Decimation code and Scale.  <a href="#ga37ee85d46d7b457dbd395f85ea6a08c0">More...</a><br /></td></tr>
<tr class="separator:ga37ee85d46d7b457dbd395f85ea6a08c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaef40c0a59e0526aeb8422b1bd7c281e8"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#gaef40c0a59e0526aeb8422b1bd7c281e8">Cy_PDM_PCM_Channel_Set_DCblock</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base, uint8_t channel_num, <a class="el" href="group__group__pdm__pcm__enums__v2.html#gac55eec2f1536ad7fc1ce84b85d47623b">cy_en_pdm_pcm_ch_dcblock_coef_t</a> coef)</td></tr>
<tr class="memdesc:gaef40c0a59e0526aeb8422b1bd7c281e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the DC blocker filter with programmable coefficient.  <a href="#gaef40c0a59e0526aeb8422b1bd7c281e8">More...</a><br /></td></tr>
<tr class="separator:gaef40c0a59e0526aeb8422b1bd7c281e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaafa3890077ed58d45f1cf9563f7e1f45"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#gaafa3890077ed58d45f1cf9563f7e1f45">Cy_PDM_PCM_Channel_SetInterruptMask</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base, uint8_t channel_num, uint32_t interrupt)</td></tr>
<tr class="memdesc:gaafa3890077ed58d45f1cf9563f7e1f45"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets one or more PDM-PCM interrupt factor bits (sets the INTR_MASK register).  <a href="#gaafa3890077ed58d45f1cf9563f7e1f45">More...</a><br /></td></tr>
<tr class="separator:gaafa3890077ed58d45f1cf9563f7e1f45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5e6b970890a5115e7ea7d8c87ceec075"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#ga5e6b970890a5115e7ea7d8c87ceec075">Cy_PDM_PCM_Channel_GetInterruptMask</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> const *base, uint8_t channel_num)</td></tr>
<tr class="memdesc:ga5e6b970890a5115e7ea7d8c87ceec075"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the PDM-PCM interrupt mask (a content of the INTR_MASK register).  <a href="#ga5e6b970890a5115e7ea7d8c87ceec075">More...</a><br /></td></tr>
<tr class="separator:ga5e6b970890a5115e7ea7d8c87ceec075"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad2c78890e56af3ea9c461319b114f74a"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#gad2c78890e56af3ea9c461319b114f74a">Cy_PDM_PCM_Channel_GetInterruptStatusMasked</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> const *base, uint8_t channel_num)</td></tr>
<tr class="memdesc:gad2c78890e56af3ea9c461319b114f74a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reports the status of enabled (masked) PDM-PCM interrupt sources.  <a href="#gad2c78890e56af3ea9c461319b114f74a">More...</a><br /></td></tr>
<tr class="separator:gad2c78890e56af3ea9c461319b114f74a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga452e3467ae8a7d24bb8b785fc4bfbfa5"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#ga452e3467ae8a7d24bb8b785fc4bfbfa5">Cy_PDM_PCM_Channel_GetInterruptStatus</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> const *base, uint8_t channel_num)</td></tr>
<tr class="memdesc:ga452e3467ae8a7d24bb8b785fc4bfbfa5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reports the status of PDM-PCM interrupt sources (an INTR register).  <a href="#ga452e3467ae8a7d24bb8b785fc4bfbfa5">More...</a><br /></td></tr>
<tr class="separator:ga452e3467ae8a7d24bb8b785fc4bfbfa5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9d8941e8d86fd989404a753e30dc91cd"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#ga9d8941e8d86fd989404a753e30dc91cd">Cy_PDM_PCM_Channel_ClearInterrupt</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base, uint8_t channel_num, uint32_t interrupt)</td></tr>
<tr class="memdesc:ga9d8941e8d86fd989404a753e30dc91cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears one or more PDM-PCM interrupt statuses (sets an INTR register's bits).  <a href="#ga9d8941e8d86fd989404a753e30dc91cd">More...</a><br /></td></tr>
<tr class="separator:ga9d8941e8d86fd989404a753e30dc91cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga53d75c5a97f5270b58e9ab6bb6531978"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#ga53d75c5a97f5270b58e9ab6bb6531978">Cy_PDM_PCM_Channel_SetInterrupt</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base, uint8_t channel_num, uint32_t interrupt)</td></tr>
<tr class="memdesc:ga53d75c5a97f5270b58e9ab6bb6531978"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets one or more interrupt source statuses (sets an INTR_SET register).  <a href="#ga53d75c5a97f5270b58e9ab6bb6531978">More...</a><br /></td></tr>
<tr class="separator:ga53d75c5a97f5270b58e9ab6bb6531978"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4a06565fe7ccb40ba26b52fce82fee4d"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#ga4a06565fe7ccb40ba26b52fce82fee4d">Cy_PDM_PCM_Channel_GetNumInFifo</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> const *base, uint8_t channel_num)</td></tr>
<tr class="memdesc:ga4a06565fe7ccb40ba26b52fce82fee4d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reports the current number of used words in the output data FIFO.  <a href="#ga4a06565fe7ccb40ba26b52fce82fee4d">More...</a><br /></td></tr>
<tr class="separator:ga4a06565fe7ccb40ba26b52fce82fee4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa37c5f02dff3717b3b7385c71303298e"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#gaa37c5f02dff3717b3b7385c71303298e">Cy_PDM_PCM_Channel_ReadFifo</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> const *base, uint8_t channel_num)</td></tr>
<tr class="memdesc:gaa37c5f02dff3717b3b7385c71303298e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads ("pops") one word from the output data FIFO.  <a href="#gaa37c5f02dff3717b3b7385c71303298e">More...</a><br /></td></tr>
<tr class="separator:gaa37c5f02dff3717b3b7385c71303298e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabb59f7b95337165c47c09903f9d725c5"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#gabb59f7b95337165c47c09903f9d725c5">Cy_PDM_PCM_Channel_FreezeFifo</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base, uint8_t channel_num)</td></tr>
<tr class="memdesc:gabb59f7b95337165c47c09903f9d725c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Freezes the RX FIFO (Debug purpose).  <a href="#gabb59f7b95337165c47c09903f9d725c5">More...</a><br /></td></tr>
<tr class="separator:gabb59f7b95337165c47c09903f9d725c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5021b0ed0ea27ad4f4244d6998990fb2"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#ga5021b0ed0ea27ad4f4244d6998990fb2">Cy_PDM_PCM_Channel_UnfreezeFifo</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *base, uint8_t channel_num)</td></tr>
<tr class="memdesc:ga5021b0ed0ea27ad4f4244d6998990fb2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unfreezes the RX FIFO (Debug purpose).  <a href="#ga5021b0ed0ea27ad4f4244d6998990fb2">More...</a><br /></td></tr>
<tr class="separator:ga5021b0ed0ea27ad4f4244d6998990fb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga55c2c7d2ea9d771760276a683fba7c7a"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#ga55c2c7d2ea9d771760276a683fba7c7a">Cy_PDM_PCM_Channel_ReadFifoSilent</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> const *base, uint8_t channel_num)</td></tr>
<tr class="memdesc:ga55c2c7d2ea9d771760276a683fba7c7a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the RX FIFO silent (without touching the FIFO function).  <a href="#ga55c2c7d2ea9d771760276a683fba7c7a">More...</a><br /></td></tr>
<tr class="separator:ga55c2c7d2ea9d771760276a683fba7c7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9dfa44a1d588f0d78efb99e0fcd2002f"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__pdm__pcm__functions__v2.html#ga9dfa44a1d588f0d78efb99e0fcd2002f">Cy_PDM_PCM_Channel_GetCurrentState</a> (<a class="el" href="struct_p_d_m___type.html">PDM_Type</a> const *base, uint8_t channel_num)</td></tr>
<tr class="memdesc:ga9dfa44a1d588f0d78efb99e0fcd2002f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current PDM-PCM state (active/stopped).  <a href="#ga9dfa44a1d588f0d78efb99e0fcd2002f">More...</a><br /></td></tr>
<tr class="separator:ga9dfa44a1d588f0d78efb99e0fcd2002f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga1392e066f0b764c9a71a9fc30bc6a33c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1392e066f0b764c9a71a9fc30bc6a33c">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__pdm__pcm__enums.html#ga8ef640550e81684b9c1b7a8af1cfd355">cy_en_pdm_pcm_status_t</a> Cy_PDM_PCM_Channel_Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__pdm__pcm__channel__config__t.html">cy_stc_pdm_pcm_channel_config_t</a> const *&#160;</td>
          <td class="paramname"><em>channel_config</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize the PDM-PCM Channel. </p>
<dl class="section pre"><dt>Precondition</dt><dd>Make sure PDM-PCM is initialized before calling this function. <a class="el" href="group__group__pdm__pcm__functions__v2.html#ga26938ec1c8eb9fe737fffabfa68f33b4">Cy_PDM_PCM_Init</a></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address </td></tr>
    <tr><td class="paramname">channel_config</td><td>The pointer to a configuration structure. </td></tr>
    <tr><td class="paramname">channel_num</td><td>The channel number to be initialized. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>error / status code. See <a class="el" href="group__group__pdm__pcm__enums__v2.html#ga8ef640550e81684b9c1b7a8af1cfd355">cy_en_pdm_pcm_status_t</a>.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U;</div><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#ga1392e066f0b764c9a71a9fc30bc6a33c">Cy_PDM_PCM_Channel_Init</a>(PDM0, &amp;channel_0_config, channel_num);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga26938ec1c8eb9fe737fffabfa68f33b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga26938ec1c8eb9fe737fffabfa68f33b4">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__pdm__pcm__enums.html#ga8ef640550e81684b9c1b7a8af1cfd355">cy_en_pdm_pcm_status_t</a> Cy_PDM_PCM_Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__pdm__pcm__config__v2__t.html">cy_stc_pdm_pcm_config_v2_t</a> const *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the PDM-PCM module. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address </td></tr>
    <tr><td class="paramname">config</td><td>The pointer to a configuration structure. <a class="el" href="structcy__stc__pdm__pcm__config__v2__t.html">cy_stc_pdm_pcm_config_v2_t</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>error / status code. See <a class="el" href="group__group__pdm__pcm__enums__v2.html#ga8ef640550e81684b9c1b7a8af1cfd355">cy_en_pdm_pcm_status_t</a>.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    status = <a class="code" href="group__group__pdm__pcm__functions.html#ga72f994cbd634988b0016f464720b3559">Cy_PDM_PCM_Init</a>(PDM0, &amp;pdm_0_config);</div><div class="line">    <span class="keywordflow">if</span>(<a class="code" href="group__group__pdm__pcm__enums__v2.html#gga8ef640550e81684b9c1b7a8af1cfd355aa19a67e822e56e6646241c57396f86a4">CY_PDM_PCM_SUCCESS</a> != status)</div><div class="line">    {</div><div class="line">        <span class="comment">//handle Error</span></div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga88c1700a022a843b9d2f4ecc49b88561"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga88c1700a022a843b9d2f4ecc49b88561">&#9670;&nbsp;</a></span>Cy_PDM_PCM_test_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__pdm__pcm__enums.html#ga8ef640550e81684b9c1b7a8af1cfd355">cy_en_pdm_pcm_status_t</a> Cy_PDM_PCM_test_Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__pdm__pcm__config__v2__t.html">cy_stc_pdm_pcm_config_v2_t</a> const *&#160;</td>
          <td class="paramname"><em>config</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__test__config__t.html">cy_stc_test_config_t</a> const *&#160;</td>
          <td class="paramname"><em>test_config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the PDM-PCM module test mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address </td></tr>
    <tr><td class="paramname">config</td><td>The pointer to a configuration structure. <a class="el" href="structcy__stc__pdm__pcm__config__v2__t.html">cy_stc_pdm_pcm_config_v2_t</a> </td></tr>
    <tr><td class="paramname">test_config</td><td>test Mode configuration. <a class="el" href="structcy__stc__test__config__t.html">cy_stc_test_config_t</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>error / status code. See <a class="el" href="group__group__pdm__pcm__enums__v2.html#ga8ef640550e81684b9c1b7a8af1cfd355">cy_en_pdm_pcm_status_t</a>. </dd></dl>

</div>
</div>
<a id="ga5a2ba75f753a63b956417ff7a614a878"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5a2ba75f753a63b956417ff7a614a878">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_DeInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_PDM_PCM_Channel_DeInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Uninitializes the PDM-PCM channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address. </td></tr>
    <tr><td class="paramname">channel_num</td><td>channel number to be de initialized.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U;</div><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#ga5a2ba75f753a63b956417ff7a614a878">Cy_PDM_PCM_Channel_DeInit</a>(PDM0, &amp;channel_0_config, channel_num);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gab516ee1cbdb2327b995d6ea079ad6209"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab516ee1cbdb2327b995d6ea079ad6209">&#9670;&nbsp;</a></span>Cy_PDM_PCM_DeInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_PDM_PCM_DeInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Uninitializes the PDM-PCM module. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <a class="code" href="group__group__pdm__pcm__functions.html#gab516ee1cbdb2327b995d6ea079ad6209">Cy_PDM_PCM_DeInit</a>(PDM0);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gab6dc3079c2689ccdc2d1ae035d326a4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab6dc3079c2689ccdc2d1ae035d326a4b">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Activate_Channel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_PDM_PCM_Activate_Channel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Activates the PDM-PCM channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address. </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number to be activated</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U;</div><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#gab6dc3079c2689ccdc2d1ae035d326a4b">Cy_PDM_PCM_Activate_Channel</a>(PDM0, channel_num);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga0c533b9429885661b8ba5b1b721a2413"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0c533b9429885661b8ba5b1b721a2413">&#9670;&nbsp;</a></span>Cy_PDM_PCM_DeActivate_Channel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_PDM_PCM_DeActivate_Channel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DeActivates the PDM-PCM channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address. </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number to be deactivated</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U;</div><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#ga0c533b9429885661b8ba5b1b721a2413">Cy_PDM_PCM_DeActivate_Channel</a>(PDM0, channel_num);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga75b89156790c4150d164d9e82077bda9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga75b89156790c4150d164d9e82077bda9">&#9670;&nbsp;</a></span>Cy_PDM_PCM_SetRateSampling()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_PDM_PCM_SetRateSampling </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__pdm__pcm__enums__v2.html#ga6772333ee7eab35a0f8b1d9db5239302">cy_en_pdm_pcm_halve_rate_sel_t</a>&#160;</td>
          <td class="paramname"><em>rate</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets Halve rate Sampling rate. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address. </td></tr>
    <tr><td class="paramname">rate</td><td>Halve rate sampling or Full rate sampling <a class="el" href="group__group__pdm__pcm__enums__v2.html#ga6772333ee7eab35a0f8b1d9db5239302">cy_en_pdm_pcm_halve_rate_sel_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#ga75b89156790c4150d164d9e82077bda9">Cy_PDM_PCM_SetRateSampling</a>(PDM0, <a class="code" href="group__group__pdm__pcm__enums__v2.html#gga6772333ee7eab35a0f8b1d9db5239302a3de2f63d9f6e0212f7042282e69e6c40">CY_PDM_PCM_RATE_FULL</a>);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gab27cd36939fc7d4872af7ca796ff8afc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab27cd36939fc7d4872af7ca796ff8afc">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_Enable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_PDM_PCM_Channel_Enable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the PDM-PCM data conversion. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address. </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number to be enabled</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U;</div><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#gab27cd36939fc7d4872af7ca796ff8afc">Cy_PDM_PCM_Channel_Enable</a>(PDM0, channel_num);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga130f6ad178dafb56399e2c5b10914e36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga130f6ad178dafb56399e2c5b10914e36">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_Disable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_PDM_PCM_Channel_Disable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the PDM-PCM data conversion. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address. </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number to be disabled</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U;</div><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#ga130f6ad178dafb56399e2c5b10914e36">Cy_PDM_PCM_Channel_Disable</a>(PDM0, channel_num);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gab1a8ae72fd10550f73190d29254466c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab1a8ae72fd10550f73190d29254466c6">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_Set_Cic_DecimCode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_PDM_PCM_Channel_Set_Cic_DecimCode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__pdm__pcm__enums__v2.html#gaa43345298364b2951b275e21ded1b454">cy_en_pdm_pcm_ch_cic_decimcode_t</a>&#160;</td>
          <td class="paramname"><em>decimcode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets PDM-PCM CIC Filter Decimation code. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number for which the CIC filter Decimation code to be set </td></tr>
    <tr><td class="paramname">decimcode</td><td>decimation code value to be set. <a class="el" href="group__group__pdm__pcm__enums__v2.html#gaa43345298364b2951b275e21ded1b454">cy_en_pdm_pcm_ch_cic_decimcode_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U;</div><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#gab1a8ae72fd10550f73190d29254466c6">Cy_PDM_PCM_Channel_Set_Cic_DecimCode</a>(PDM0, channel_num, <a class="code" href="group__group__pdm__pcm__enums__v2.html#ggaa43345298364b2951b275e21ded1b454a83e636ee260a3b2e15ad08055ffb10d1">CY_PDM_PCM_CHAN_CIC_DECIM_8</a>);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaa746b85af2c98146a2243ed5725642ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa746b85af2c98146a2243ed5725642ba">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_Set_Fir0()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_PDM_PCM_Channel_Set_Fir0 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__pdm__pcm__enums__v2.html#gaf32821b068ff1292891ad11066bd9d4c">cy_en_pdm_pcm_ch_fir0_decimcode_t</a>&#160;</td>
          <td class="paramname"><em>decimcode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>scale</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets PDM-PCM FIR0 Filter Decim code and Scale. </p>
<p>The FIR filter coefficients have no default values: the coefficients MUST be programmed BEFORE the filter is enabled. By Default FIR0 is disabled and is only used for 8Khz and 16 Khz sample frequencies. For other frequencies it is a pass through.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number for which the FIR0 Decimation code and the filter to be set. </td></tr>
    <tr><td class="paramname">decimcode</td><td>Decimation code value to be set. <a class="el" href="group__group__pdm__pcm__enums__v2.html#gaf32821b068ff1292891ad11066bd9d4c">cy_en_pdm_pcm_ch_fir0_decimcode_t</a>. </td></tr>
    <tr><td class="paramname">scale</td><td>Scale value to be set.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U; <span class="comment">// Channel number used.</span></div><div class="line">    uint8_t scale = 22U; <span class="comment">// scale should be in the range of 1 to 31</span></div><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#gaa746b85af2c98146a2243ed5725642ba">Cy_PDM_PCM_Channel_Set_Fir0</a>(PDM0, channel_num, <a class="code" href="group__group__pdm__pcm__enums__v2.html#ggaf32821b068ff1292891ad11066bd9d4ca6b81f687d69f814abcb017738e7a0494">CY_PDM_PCM_CHAN_FIR0_DECIM_4</a>, scale);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga37ee85d46d7b457dbd395f85ea6a08c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga37ee85d46d7b457dbd395f85ea6a08c0">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_Set_Fir1()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_PDM_PCM_Channel_Set_Fir1 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__pdm__pcm__enums__v2.html#ga2b59920bd0f1a3b4051da1f358d502db">cy_en_pdm_pcm_ch_fir1_decimcode_t</a>&#160;</td>
          <td class="paramname"><em>decimcode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>scale</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets PDM-PCM FIR1 Filter Decimation code and Scale. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number for which the FIR1 Decimation code and the filter to be set. </td></tr>
    <tr><td class="paramname">decimcode</td><td>Decimation code value to be set. <a class="el" href="group__group__pdm__pcm__enums__v2.html#ga2b59920bd0f1a3b4051da1f358d502db">cy_en_pdm_pcm_ch_fir1_decimcode_t</a>. </td></tr>
    <tr><td class="paramname">scale</td><td>Scale value to be set.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U; <span class="comment">// Channel number used.</span></div><div class="line">    uint8_t scale = 22U; <span class="comment">// scale should be in the range of 1 to 31</span></div><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#ga37ee85d46d7b457dbd395f85ea6a08c0">Cy_PDM_PCM_Channel_Set_Fir1</a>(PDM0, channel_num, <a class="code" href="group__group__pdm__pcm__enums__v2.html#gga2b59920bd0f1a3b4051da1f358d502dba4136e0f22233114f2394b15c8915c85a">CY_PDM_PCM_CHAN_FIR1_DECIM_2</a>, scale);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaef40c0a59e0526aeb8422b1bd7c281e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaef40c0a59e0526aeb8422b1bd7c281e8">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_Set_DCblock()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_PDM_PCM_Channel_Set_DCblock </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__pdm__pcm__enums__v2.html#gac55eec2f1536ad7fc1ce84b85d47623b">cy_en_pdm_pcm_ch_dcblock_coef_t</a>&#160;</td>
          <td class="paramname"><em>coef</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the DC blocker filter with programmable coefficient. </p>
<p>The filter is used to remove a DC component.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number for which DC block coef to be set. </td></tr>
    <tr><td class="paramname">coef</td><td>coef value to be set. <a class="el" href="group__group__pdm__pcm__enums__v2.html#gac55eec2f1536ad7fc1ce84b85d47623b">cy_en_pdm_pcm_ch_dcblock_coef_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U; <span class="comment">// Channel number used.</span></div><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#gaef40c0a59e0526aeb8422b1bd7c281e8">Cy_PDM_PCM_Channel_Set_DCblock</a>(PDM0, channel_num, <a class="code" href="group__group__pdm__pcm__enums__v2.html#ggac55eec2f1536ad7fc1ce84b85d47623babd51382c228360d542b743058c74ef9b">CY_PDM_PCM_CHAN_DCBLOCK_CODE_8</a>);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaafa3890077ed58d45f1cf9563f7e1f45"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaafa3890077ed58d45f1cf9563f7e1f45">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_SetInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_PDM_PCM_Channel_SetInterruptMask </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>interrupt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets one or more PDM-PCM interrupt factor bits (sets the INTR_MASK register). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number </td></tr>
    <tr><td class="paramname">interrupt</td><td>Interrupt bit mask <a class="el" href="group__group__pdm__pcm__macros__interrupt__masks__v2.html">Interrupt Masks</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U;</div><div class="line">    <span class="comment">/* CY_PDM_PCM_INTR_MASK defines mask for all available interrupt sources. </span></div><div class="line"><span class="comment">       CY_PDM_PCM_INTR_RX_TRIGGER</span></div><div class="line"><span class="comment">       CY_PDM_PCM_INTR_RX_FIR_OVERFLOW</span></div><div class="line"><span class="comment">       CY_PDM_PCM_INTR_RX_OVERFLOW</span></div><div class="line"><span class="comment">       CY_PDM_PCM_INTR_RX_IF_OVERFLOW</span></div><div class="line"><span class="comment">       CY_PDM_PCM_INTR_RX_UNDERFLOW */</span></div><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#gaafa3890077ed58d45f1cf9563f7e1f45">Cy_PDM_PCM_Channel_SetInterruptMask</a>(PDM0, channel_num, CY_PDM_PCM_INTR_MASK);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga5e6b970890a5115e7ea7d8c87ceec075"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5e6b970890a5115e7ea7d8c87ceec075">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_GetInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_PDM_PCM_Channel_GetInterruptMask </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the PDM-PCM interrupt mask (a content of the INTR_MASK register). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address. </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The interrupt bit mask <a class="el" href="group__group__pdm__pcm__macros__interrupt__masks__v2.html">Interrupt Masks</a>. </dd></dl>

</div>
</div>
<a id="gad2c78890e56af3ea9c461319b114f74a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad2c78890e56af3ea9c461319b114f74a">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_GetInterruptStatusMasked()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_PDM_PCM_Channel_GetInterruptStatusMasked </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reports the status of enabled (masked) PDM-PCM interrupt sources. </p>
<p>(an INTR_MASKED register).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address. </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The interrupt bit mask <a class="el" href="group__group__pdm__pcm__macros__interrupt__masks__v2.html">Interrupt Masks</a>.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U;</div><div class="line">    <span class="comment">/* Cy_PDM_PCM_Init, Cy_PDM_PCM_Channel_Init and  Cy_PDM_PCM_Channel_Enable are pre-requisites */</span></div><div class="line">    <span class="keyword">volatile</span> uint32_t int_stat;</div><div class="line">    int_stat = <a class="code" href="group__group__pdm__pcm__functions__v2.html#gad2c78890e56af3ea9c461319b114f74a">Cy_PDM_PCM_Channel_GetInterruptStatusMasked</a>(PDM0, ch);</div><div class="line">    <span class="keywordflow">if</span>(CY_PDM_PCM_INTR_RX_TRIGGER &amp; int_stat)</div><div class="line">    {</div><div class="line">        <span class="keywordflow">for</span>(i=0; i &lt; RX_FIFO_TRIG_LEVEL; i++)</div><div class="line">        {</div><div class="line">            int32_t data = (int32_t)<a class="code" href="group__group__pdm__pcm__functions__v2.html#gaa37c5f02dff3717b3b7385c71303298e">Cy_PDM_PCM_Channel_ReadFifo</a>(PDM0, ch);</div><div class="line">            <span class="comment">// data can be stored and used as pcm data</span></div><div class="line">        }</div><div class="line">    }</div><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#ga9d8941e8d86fd989404a753e30dc91cd">Cy_PDM_PCM_Channel_ClearInterrupt</a>(PDM0, channel_num, CY_PDM_PCM_INTR_MASK);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga452e3467ae8a7d24bb8b785fc4bfbfa5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga452e3467ae8a7d24bb8b785fc4bfbfa5">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_GetInterruptStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_PDM_PCM_Channel_GetInterruptStatus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reports the status of PDM-PCM interrupt sources (an INTR register). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address. </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The interrupt bit mask <a class="el" href="group__group__pdm__pcm__macros__interrupt__masks__v2.html">Interrupt Masks</a>.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U;</div><div class="line">    <span class="comment">/* Cy_PDM_PCM_Init, Cy_PDM_PCM_Channel_Init and  Cy_PDM_PCM_Channel_Enable are pre-requisites */</span></div><div class="line">    <span class="keyword">volatile</span> uint32_t int_stat;</div><div class="line">    int_stat = <a class="code" href="group__group__pdm__pcm__functions__v2.html#gad2c78890e56af3ea9c461319b114f74a">Cy_PDM_PCM_Channel_GetInterruptStatusMasked</a>(PDM0, ch);</div><div class="line">    <span class="keywordflow">if</span>(CY_PDM_PCM_INTR_RX_TRIGGER &amp; int_stat)</div><div class="line">    {</div><div class="line">        <span class="keywordflow">for</span>(i=0; i &lt; RX_FIFO_TRIG_LEVEL; i++)</div><div class="line">        {</div><div class="line">            int32_t data = (int32_t)<a class="code" href="group__group__pdm__pcm__functions__v2.html#gaa37c5f02dff3717b3b7385c71303298e">Cy_PDM_PCM_Channel_ReadFifo</a>(PDM0, ch);</div><div class="line">            <span class="comment">// data can be stored and used as pcm data</span></div><div class="line">        }</div><div class="line">    }</div><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#ga9d8941e8d86fd989404a753e30dc91cd">Cy_PDM_PCM_Channel_ClearInterrupt</a>(PDM0, channel_num, CY_PDM_PCM_INTR_MASK);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga9d8941e8d86fd989404a753e30dc91cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9d8941e8d86fd989404a753e30dc91cd">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_ClearInterrupt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_PDM_PCM_Channel_ClearInterrupt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>interrupt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears one or more PDM-PCM interrupt statuses (sets an INTR register's bits). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number </td></tr>
    <tr><td class="paramname">interrupt</td><td>The interrupt bit mask <a class="el" href="group__group__pdm__pcm__macros__interrupt__masks__v2.html">Interrupt Masks</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U;</div><div class="line">    <span class="comment">/* CY_PDM_PCM_INTR_MASK defines mask for all available interrupt sources. </span></div><div class="line"><span class="comment">       CY_PDM_PCM_INTR_RX_TRIGGER</span></div><div class="line"><span class="comment">       CY_PDM_PCM_INTR_RX_FIR_OVERFLOW</span></div><div class="line"><span class="comment">       CY_PDM_PCM_INTR_RX_OVERFLOW</span></div><div class="line"><span class="comment">       CY_PDM_PCM_INTR_RX_IF_OVERFLOW</span></div><div class="line"><span class="comment">       CY_PDM_PCM_INTR_RX_UNDERFLOW */</span></div><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#ga9d8941e8d86fd989404a753e30dc91cd">Cy_PDM_PCM_Channel_ClearInterrupt</a>(PDM0, channel_num, CY_PDM_PCM_INTR_MASK);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga53d75c5a97f5270b58e9ab6bb6531978"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga53d75c5a97f5270b58e9ab6bb6531978">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_SetInterrupt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_PDM_PCM_Channel_SetInterrupt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>interrupt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets one or more interrupt source statuses (sets an INTR_SET register). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address. </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number </td></tr>
    <tr><td class="paramname">interrupt</td><td>The interrupt bit mask <a class="el" href="group__group__pdm__pcm__macros__interrupt__masks__v2.html">Interrupt Masks</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga4a06565fe7ccb40ba26b52fce82fee4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4a06565fe7ccb40ba26b52fce82fee4d">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_GetNumInFifo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint8_t Cy_PDM_PCM_Channel_GetNumInFifo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reports the current number of used words in the output data FIFO. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address. </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The current number of used FIFO words (range is 0 - 63).</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U; <span class="comment">// Channel number used.</span></div><div class="line">    uint8_t num_in_fifo = <a class="code" href="group__group__pdm__pcm__functions__v2.html#ga4a06565fe7ccb40ba26b52fce82fee4d">Cy_PDM_PCM_Channel_GetNumInFifo</a>(PDM0, channel_num);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaa37c5f02dff3717b3b7385c71303298e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa37c5f02dff3717b3b7385c71303298e">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_ReadFifo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_PDM_PCM_Channel_ReadFifo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads ("pops") one word from the output data FIFO. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address. </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The data word read from the FIFO is returned.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U;</div><div class="line">    <span class="comment">/* Cy_PDM_PCM_Init, Cy_PDM_PCM_Channel_Init and  Cy_PDM_PCM_Channel_Enable are pre-requisites */</span></div><div class="line">    <span class="keyword">volatile</span> uint32_t int_stat;</div><div class="line">    int_stat = <a class="code" href="group__group__pdm__pcm__functions__v2.html#gad2c78890e56af3ea9c461319b114f74a">Cy_PDM_PCM_Channel_GetInterruptStatusMasked</a>(PDM0, ch);</div><div class="line">    <span class="keywordflow">if</span>(CY_PDM_PCM_INTR_RX_TRIGGER &amp; int_stat)</div><div class="line">    {</div><div class="line">        <span class="keywordflow">for</span>(i=0; i &lt; RX_FIFO_TRIG_LEVEL; i++)</div><div class="line">        {</div><div class="line">            int32_t data = (int32_t)<a class="code" href="group__group__pdm__pcm__functions__v2.html#gaa37c5f02dff3717b3b7385c71303298e">Cy_PDM_PCM_Channel_ReadFifo</a>(PDM0, ch);</div><div class="line">            <span class="comment">// data can be stored and used as pcm data</span></div><div class="line">        }</div><div class="line">    }</div><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#ga9d8941e8d86fd989404a753e30dc91cd">Cy_PDM_PCM_Channel_ClearInterrupt</a>(PDM0, channel_num, CY_PDM_PCM_INTR_MASK);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gabb59f7b95337165c47c09903f9d725c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabb59f7b95337165c47c09903f9d725c5">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_FreezeFifo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_PDM_PCM_Channel_FreezeFifo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Freezes the RX FIFO (Debug purpose). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address. </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U; <span class="comment">// Channel number used.</span></div><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#gabb59f7b95337165c47c09903f9d725c5">Cy_PDM_PCM_Channel_FreezeFifo</a>(PDM0, channel_num);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga5021b0ed0ea27ad4f4244d6998990fb2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5021b0ed0ea27ad4f4244d6998990fb2">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_UnfreezeFifo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_PDM_PCM_Channel_UnfreezeFifo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unfreezes the RX FIFO (Debug purpose). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address. </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U; <span class="comment">// Channel number used.</span></div><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#ga5021b0ed0ea27ad4f4244d6998990fb2">Cy_PDM_PCM_Channel_UnfreezeFifo</a>(PDM0, channel_num);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga55c2c7d2ea9d771760276a683fba7c7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga55c2c7d2ea9d771760276a683fba7c7a">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_ReadFifoSilent()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_PDM_PCM_Channel_ReadFifoSilent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads the RX FIFO silent (without touching the FIFO function). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>Pointer to PDM-PCM instance address. </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Silent FIFO value is read and returned.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U; <span class="comment">// Channel number used.</span></div><div class="line">    <a class="code" href="group__group__pdm__pcm__functions__v2.html#ga55c2c7d2ea9d771760276a683fba7c7a">Cy_PDM_PCM_Channel_ReadFifoSilent</a>(PDM0, channel_num);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga9dfa44a1d588f0d78efb99e0fcd2002f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9dfa44a1d588f0d78efb99e0fcd2002f">&#9670;&nbsp;</a></span>Cy_PDM_PCM_Channel_GetCurrentState()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE bool Cy_PDM_PCM_Channel_GetCurrentState </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_d_m___type.html">PDM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>channel_num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the current PDM-PCM state (active/stopped). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the PDM-PCM instance address. </td></tr>
    <tr><td class="paramname">channel_num</td><td>Channel number </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if channel is active, false when stopped.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint8_t channel_num = 0U; <span class="comment">// Channel number used.</span></div><div class="line">    <span class="keywordtype">bool</span> channel_state = <a class="code" href="group__group__pdm__pcm__functions__v2.html#ga9dfa44a1d588f0d78efb99e0fcd2002f">Cy_PDM_PCM_Channel_GetCurrentState</a>(PDM0, channel_num);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
